

#ifndef CORE_INCLUDED
#define CORE_INCLUDED




//
// Ensure that POCO_DLL is default unless POCO_STATIC is defined
//
#if defined(_WIN32) && defined(_DLL)
	#if !defined(CORE_DLL) && !defined(CORE_STATIC)
		#define CORE_DLL
	#endif
#endif


//
// The following block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the Foundation_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// Foundation_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
//

	#if defined(CORE_EXPORTS)
		#define CORE_API __declspec(dllexport)
	#else
		#define CORE_API __declspec(dllimport)	
	#endif



#if !defined(CORE_API)
	#define CORE_API
#endif


//
// Automatically link Foundation library.
//
#if defined(_MSC_VER)
	//#if defined(CORE_DLL)
		#if defined(_DEBUG)
			#define IGUARD_LIB_SUFFIX "d.lib"
		#else
			#define IGUARD_LIB_SUFFIX ".lib"
		#endif
	//#elif defined(_DLL)
	//	#if defined(_DEBUG)
	//		#define IGUARD_LIB_SUFFIX "mdd.lib"
	//	#else
	//		#define IGUARD_LIB_SUFFIX "md.lib"
	//	#endif
	//#else
	//	#if defined(_DEBUG)
	//		#define IGUARD_LIB_SUFFIX "mtd.lib"
	//	#else
	//		#define IGUARD_LIB_SUFFIX "mt.lib"
	//	#endif
	//#endif

	#if !defined(CORE_EXPORTS)
		#pragma comment(lib, "Core" IGUARD_LIB_SUFFIX)
	#endif
#endif


#endif // CORE_INCLUDED
